﻿@model IEnumerable<Post>
@{
    ViewBag.Title = "Index";
}

<h2>Posts</h2>

@Html.ActionLink("Novo", "Novo")

<ul>
@foreach (Post post in @Model)
{
    <li>
        <p><strong>@post.Title</strong></p>
        <div style="width: 300px; max-height: 300px; overflow:hidden;" >@Html.Raw(@post.Content)</div>
        <p>@post.Tags</p>
    </li>
}
</ul>